.class public Llt/noframe/gpsfarmguide/utils/Errors;
.super Ljava/lang/Object;
.source "Errors.java"


# direct methods
.method public static setError(Landroid/content/Context;Landroid/widget/EditText;Ljava/lang/String;)V
    .locals 2

    .line 25
    invoke-virtual {p1, p2}, Landroid/widget/EditText;->setError(Ljava/lang/CharSequence;)V

    .line 26
    invoke-virtual {p1}, Landroid/widget/EditText;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object p2

    sget-object v0, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;

    const/high16 v1, -0x10000

    invoke-virtual {p2, v1, v0}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

    .line 27
    new-instance p2, Llt/noframe/gpsfarmguide/utils/Errors$1;

    invoke-direct {p2, p1, p0}, Llt/noframe/gpsfarmguide/utils/Errors$1;-><init>(Landroid/widget/EditText;Landroid/content/Context;)V

    invoke-virtual {p1, p2}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    return-void
.end method
